
public class demo9 {
	//1/2+1/4+1/6+1/8.....1/100?
	public static void main(String[] args) {
		double i=2,sum=0;
		while(i<=100){
			sum=sum+1/i;
			i=i+2;
		}
		System.out.println("sum="+sum);
	}

}
